package com.cheng.mybatis.mapper;

import com.cheng.mybatis.domain.Book;
import com.cheng.mybatis.domain.BookExample;


import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BookMapper {
	long countByExample(BookExample example);

	int deleteByExample(BookExample example);

	int insert(Book record);

	int insertSelective(Book record);

	List<Book> selectByExample(BookExample example);

	int updateByExampleSelective(@Param("record") Book record, @Param("example") BookExample example);

	int updateByExample(@Param("record") Book record, @Param("example") BookExample example);

	/*int insertBook(Book book ,Bookdetailed bookdetailed);
	
*/
}